package com.chenjunlin.shortlink.admin.common.enums;

import com.chenjunlin.shortlink.admin.common.convention.errorcode.IErrorCode;

public enum UserErrorCodeEnun implements IErrorCode {

    USER_NOT_FIND("B000200","用户记录不存在"),
    USER_ALREADY_EXIST("B000201","用户记录已存在"),
    USER_INSERT_FAILURE("B0000202","用户记录插入失败"),
    USER_NOT_ACQUIRED_LOCK("B0000203","注册功能繁忙，请稍后再试"),
    USER_LOGIN_FAIL("B0000204","登录失败，请检查账号密码是否输入正确"),
    USER_NOT_LOGIN("B0000205","登出失败，用户未登录或不存在"),
    USER_TOKEN_FAIL("B0000206","token验证失败")
    ;
    private final String code;

    private final String message;

    UserErrorCodeEnun(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
